import request from '@/utils/request.js'
import {ssrModuleExportsKey} from "vite/runtime";


export const utilityInfoService=(params)=>{
    return request.get('/utilitybill/utilitybillinfo',{params:params})
}

export const R_utilityInfoService=(params)=>{
    return request.get('/utilitybill/r-utilitybillinfo',{params:params})
}

export const utilityBillDownloadService=(billid)=>{
    const params=new URLSearchParams();
    params.append('billid',billid)
    return request.get('/utilitybill/downloadBill',{params})
}

export const waterRateListService=()=>{
    return request.get('/rate/getwater')
}

export const electricityRateListService=()=>{
    return request.get('/rate/getelectricity')
}

export const waterRateUpdateService=(updateWaterRateData)=>{

    return request.post('/rate/updatewater',updateWaterRateData)
}

export const electricityRateUpdateService=(updateElectricityRateData)=>{

    return request.post('/rate/updateelectricity',updateElectricityRateData)
}

export const utilityBillGetMonthService=()=>{
    return request.get('/utilitybill/getmonth')
}